import request from '@/utils/request';

export async function page(params) {
  return request('/jmonkey/system/module/page', {
    method: 'GET',
    params
  });
}

export async function save(data) {
  return request('/jmonkey/system/module/save', {
    method: 'POST',
    data,
  });
}

export async function update(data) {
  return request('/jmonkey/system/module/update', {
    method: 'PUT',
    data,
  });
}

export async function remove(id) {
  return request(`/jmonkey/system/module/remove/${id}`, {
    method: 'DELETE',
  });
}

export async function listAll() {
  return request('/jmonkey/system/module/listAll', {
    method: 'GET',
  });
}